<?php 
	cs()->registerScriptFile(bu('js/nivo-slider/jquery.nivo.slider.pack.js'));
  cs()->registerCssFile(bu('js/nivo-slider/nivo-slider.css'));
?>
<div class="slider-wrapper theme-default">
  <div class="ribbon"></div>
  <div id="slider" class="nivoSlider">
      <?php foreach($banners as $data) : ?>
          <?php echo NHtml::image($data->thumb935x336); ?>
      <?php endforeach; ?>
  </div>
</div>
<script type="text/javascript">
  $(window).load(function() {
    $('#slider').nivoSlider({
        effect: 'fade',
        prevText: '',
        nextText: '',
        controlNav: false
    });
});
</script>